import VueRouter from 'vue-router'
import Vue from '../node_modules/vue/dist/vue.js';
import home from "./components/tabbar/home.vue";
import shopcar from "./components/tabbar/shopcar.vue";
import member from "./components/tabbar/member.vue"
import search from "./components/tabbar/search.vue"
import newList from "./components/news/newList.vue"
import newsinfo from "./components/news/newsinfo.vue"
Vue.use(VueRouter);
var router = new VueRouter({

    routes: [
        { path: "/", redirect: "/home" },
        { path: '/search', component: search },
        { path: '/home', component: home },
        { path: '/shopcar', component: shopcar },
        { path: '/member', component: member },
        { path: '/home/newList', component: newList },
        { path: '/home/newsinfo/:id', component: newsinfo }
    ],
    linkActiveClass: "mui-active"
})
export default router;